package com.million.eduservice;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @Author: studyboy
 * @Date: 2022/3/19  10:19
 */
@SpringBootApplication
@EnableDiscoveryClient   //nacos注册中心
@EnableTransactionManagement //添加事务
@EnableFeignClients   //服务调用
@ComponentScan(basePackages = {"com.million"})  //为了扫描到service_base中的config包下的配置类
public class ServiceEduSpringApplicationMain {
    public static void main (String[] args) {
        SpringApplication.run(ServiceEduSpringApplicationMain.class, args);
    }
}
